package com.zt.java.back;

import java.util.ArrayList;
import java.util.List;

class Demo1 {
    private double radius = 0;
    public static int count =1;
    private Demo1(double radius) {
        this.radius = radius;
    }
    public void test(){
        count++;
        System.out.println(this.radius);
    }
    class Draw {     //内部类
        private double radius = 0;
        public void drawSahpe() {
            System.out.println(Demo1.this.radius);  //外部类的private成员
            System.out.println(count);   //外部类的静态成员
        }
    }
}
